<script>
window.screen.orientation.addEventListener('change', () => {
  parent.window.postMessage(screen.orientation.type, "*");
});
</script>
